using System;
using System.Collections.Generic;
using System.Text;

using Csla;
using Csla.Data;
namespace buildingLib.query
{
    public class DoorResult:BusinessBase<DoorResult>
    {
        string m_name;

        public string Name
        {
            get { return m_name; }
            set { m_name = value; }
        }
        Guid m_doorID;
        public Guid DoorID
        {
            get { return m_doorID; }
        }
        protected override object GetIdValue()
        {
            return m_doorID;
        }

        public static  DoorResult GetDoorResult(SafeDataReader dr)
        {
            return new DoorResult(dr);
        }
        private DoorResult(SafeDataReader dr)
        {
            m_doorID = dr.GetGuid(0);
        }

    }

    public class DoorResults : BusinessListBase<DoorResults, DoorResult>
    {
        public static DoorResults NewDoorResults()
        {
            return new DoorResults();
        }
        private DoorResults()
        {
        }
    }
}
